/**
 * Created by Ladyson on 2015/8/27.
 */
indexModule.config(['$routeProvider',function($routeProvider){
    $routeProvider
        .when('/index',{
            templateUrl: '/views/webinfo.html',
            controller: 'webInfo'
        })
        .when('/users/list',{
            templateUrl: '/views/users/list.html',
            controller: 'usersList'
        })
        .when('/users/modify',{
            templateUrl: '/views/users/modify.html',
            controller: 'modifyPwd'
        })
        .when('/web/list',{
            templateUrl: '/views/web/list.html',
            controller: 'webList'
        })
        .when('/web/list/:id', {
            templateUrl: '/views/ad/list.html',
            controller: 'adList'
        })
        .when('/talk/list',{
            templateUrl: '/views/talk/list.html',
            controller: 'talkList'
        })
        .when('/talk/add',{
            templateUrl: '/views/talk/save.html',
            controller: 'talkSave'
        })
        .when('/talk/list/:id',{
            templateUrl: '/views/talk/save.html',
            controller: 'talkSave'
        })
        .when('/talk/list/content/:id',{
            templateUrl: '/views/talk/content.html',
            controller: 'talkContent'
        })
        .when('/notice/list',{
            templateUrl: '/views/notice/list.html',
            controller: 'noticeList'
        })
        .when('/notice/add',{
            templateUrl: '/views/notice/save.html',
            controller: 'noticeSave'
        })
        .when('/notice/list/:id',{
            templateUrl: '/views/notice/save.html',
            controller: 'noticeSave'
        })
        .when('/notice/list/content/:id',{
            templateUrl: '/views/notice/content.html',
            controller: 'noticeContent'
        })

        .when('/article/talk',{
            templateUrl: '/views/article/talk.html',
            controller: 'talkAll'
        })
        .when('/article/talk/:id',{
            templateUrl: '/views/article/content.html',
            controller: 'talkAll'
        })

        .when('/article/notice',{
            templateUrl: '/views/article/notice.html',
            controller: 'noticeAll'
        })
        .when('/article/notice/:id',{
            templateUrl: '/views/article/content.html',
            controller: 'noticeAll'
        })

        .when('/article/ad',{
            templateUrl: '/views/article/ad.html',
            controller: 'adAll'
        })

        .otherwise({
            redirectTo:'/index'
        });
}]);